import 'package:xin_he/generated/json/base/json_field.dart';
import 'package:xin_he/generated/json/xin_he_member_info_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class XinHeMemberInfoEntity {
	int? id;
	dynamic userId;
	String? iconPath;
	String? nickname;
	String? mobile;
	String? code;
	String? parentCode;
	int? gender;
	String? level;
	dynamic remark;
	dynamic createTime;
	dynamic adoptionDate;
	String? role;
	String? serviceName;
	int? adoptionNum;
	String? name;
	String? parentName;
	String? parentMobile;
	String? newReference;
	String? roleTwo;
	int? identifying;
	dynamic twoThawNo;
	int? threeThawNo;
	int? twoThawAdopted;
	int? threeThawAdopted;
	String? memberStatus;
	dynamic checkStatus;

	XinHeMemberInfoEntity();

	factory XinHeMemberInfoEntity.fromJson(Map<String, dynamic> json) => $XinHeMemberInfoEntityFromJson(json);

	Map<String, dynamic> toJson() => $XinHeMemberInfoEntityToJson(this);

	XinHeMemberInfoEntity copyWith({int? id, dynamic userId, String? iconPath, String? nickname, String? mobile, String? code, String? parentCode, int? gender, String? level, dynamic remark, dynamic createTime, dynamic adoptionDate, String? role, String? serviceName, int? adoptionNum, String? name, String? parentName, String? parentMobile, String? newReference, String? roleTwo, int? identifying, dynamic twoThawNo, int? threeThawNo, int? twoThawAdopted, int? threeThawAdopted, String? memberStatus, dynamic checkStatus}) {
		return XinHeMemberInfoEntity()
			..id= id ?? this.id
			..userId= userId ?? this.userId
			..iconPath= iconPath ?? this.iconPath
			..nickname= nickname ?? this.nickname
			..mobile= mobile ?? this.mobile
			..code= code ?? this.code
			..parentCode= parentCode ?? this.parentCode
			..gender= gender ?? this.gender
			..level= level ?? this.level
			..remark= remark ?? this.remark
			..createTime= createTime ?? this.createTime
			..adoptionDate= adoptionDate ?? this.adoptionDate
			..role= role ?? this.role
			..serviceName= serviceName ?? this.serviceName
			..adoptionNum= adoptionNum ?? this.adoptionNum
			..name= name ?? this.name
			..parentName= parentName ?? this.parentName
			..parentMobile= parentMobile ?? this.parentMobile
			..newReference= newReference ?? this.newReference
			..roleTwo= roleTwo ?? this.roleTwo
			..identifying= identifying ?? this.identifying
			..twoThawNo= twoThawNo ?? this.twoThawNo
			..threeThawNo= threeThawNo ?? this.threeThawNo
			..twoThawAdopted= twoThawAdopted ?? this.twoThawAdopted
			..threeThawAdopted= threeThawAdopted ?? this.threeThawAdopted
			..memberStatus= memberStatus ?? this.memberStatus
			..checkStatus= checkStatus ?? this.checkStatus;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}